package com.yequan.mybatisframework.sqlsession;


import com.yequan.mybatisframework.config.Configuration;

public class DefaultSqlSessionFactory implements SqlSessionFactory {

	//SqlSessionFactory它 不具备生成Configuration对象的能力
	private Configuration configuration;

	public DefaultSqlSessionFactory(Configuration configuration) {
		super();
		this.configuration = configuration;
	}

	@Override
	public SqlSession openSession() {
		return new DefaultSqlSession(configuration);
	}

}
